package com.leon.alishop.core.enumeration;

public enum CityAreaTypeEnum {

	PROVINCE("省(市)",1),
	CITY("市(区)",2),
	COUNTY("区(县)",3),
	;
	
	private String display;
	private int order;
	
	CityAreaTypeEnum(String display,int order){
		this.display = display;
		this.order = order;
	}
	public String getDisplay(){
		return this.display;
	}
	
	public int getOrder(){
		return order;
	}
	
	public static CityAreaTypeEnum valueOfOrder(Integer order){
		if(order == null)
			return null;
		for (CityAreaTypeEnum e : CityAreaTypeEnum.values()) {
			if(e.getOrder() == order)
				return e;
		}
		return null;
	} 
	
}
